package biz.datalk.industrialland.common.encrypt.exception;


import biz.datalk.industrialland.common.result.UnifyResultCode;

/**
 * @author tarofang@163.com
 * @date 2019年07月11日
 */
public class DesException extends EncryptionException {
    private static final long serialVersionUID = 155570069577276117L;

    public static final String MESSAGE = "des excepton";

    public DesException() {
        super(MESSAGE);
    }

    public DesException(String message) {
        super(message);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_DES;
    }

    public DesException(String code, String message) {
        super(message);
        this.code = code;
    }

    public DesException(String message, Throwable cause) {
        super(message, cause);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_DES;
    }

    public DesException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public DesException(Throwable cause) {
        super(cause);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_DES;
    }
}
